import axios from './config'

export async function searchBook (key) {
  return axios.get(`/e/book/${key}`)
}

export async function addTask (task) {
  return axios.post('/e/task', task)
}

export async function getAllTasks () {
  return axios.get('/e/task')
}

export async function deleteTask (id) {
  return axios.delete(`/e/task/${id}`)
}
